package com.lagou.controller;

import com.lagou.common.ServerResponse;
import com.lagou.service.IIndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/industry")
public class IndustryController {

    @Autowired
    private IIndustryService industryService;

    @RequestMapping(value = "top10AvgSalary.do", method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse<Map<String ,Object>> top10AvgSalary(){
        return industryService.top10AvgSalary();
    };
}
